<?php
$conn = new mysqli("localhost", "root", "", "simple_weibo");
$conn->query("set names 'utf8'");

$sql = "delete from weibo_complaint where cm_id is null and kidcm_id is null";
$res = $conn->query($sql);

if($res){
    echo "你已忽略所有被投诉微博";
}else{
    echo "忽略所有被投诉微博失败";
}